package com.common.models;

import java.util.HashMap;
import java.util.Map;

/**
 * 短信类型
 * @author mu
 *
 */
public enum SourceTypeEnum {
	
	TYPE_1("1", "普通房源"),//1普通房源
	TYPE_2("2", "精品豪宅"),//2精品豪宅
	
	;
	private String code;
	private String key;

	private SourceTypeEnum(String code, String key) {
		this.code = code;
		this.key = key;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public static Map<String, SourceTypeEnum> getViewMap() {
		Map<String, SourceTypeEnum> ope = new HashMap<String, SourceTypeEnum>();
		for (SourceTypeEnum ste :SourceTypeEnum.values()) {
			ope.put(ste.getCode(), ste);
		}
		return ope;
	}
}
